package org.beetl.sql.ext.jpa.mapper.internal.crud;

import java.lang.reflect.Method;

import org.beetl.sql.core.SQLManager;
import org.beetl.sql.core.SQLReady;
import org.beetl.sql.core.concat.Delete;
import org.beetl.sql.mapper.MapperInvoke;

public class DeleteAllAMI extends MapperInvoke{

	@Override
	public Object call(SQLManager sm, Class entityClass, Method m, Object[] args) {
		return sm.executeUpdate(new SQLReady("delete from "+sm.getNc().getTableName(entityClass)));
	}


}
